<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script>
		 var arr=[66,166,55,7,23,9988,-3]
		 arr.sort(function(x,y){return(x-y);});
		 alert(arr)
		</script>
	</body>
</html>
   